package com.hnevc.yourhealthmanager.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@ApiModel(value = "DietRecordDTO", description = "饮食记录DTO信息")
public class DietRecordDTO {

    @ApiModelProperty(value = "饮食记录ID")
    private Integer id;
    @ApiModelProperty(value = "食物ID")
    private Integer foodId;
    @ApiModelProperty(value = "用户ID")
    private Integer userId;
    @ApiModelProperty(value = "饮食类别ID")
    private Integer dietCategoryId;
    @ApiModelProperty(value = "饮食图片")
    private String dietImage;
    @ApiModelProperty(value = "饮食类别名称")
    private String dietCategoryName;
    @ApiModelProperty(value = "食物名称")
    private String foodName;
    @ApiModelProperty(value = "用户姓名")
    private String userName;
    @ApiModelProperty(value = "饮食记录时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    private Date dietTime;
    // 省略getter和setter方法
}